package demo;

import java.net.URI;
import java.net.URISyntaxException;

import ads.util.ClientConfig;

public class PlayerTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		Player p1 = new Player(1);
//		p1.setName("p1");
//		Player p2 = new Player(2);
//		p2.setName("p1");
//		System.out.println(p1.equals(p2));
//		System.out.println(p1);
		try {
			URI uri=new URI("rmi://localhost:8080/ServerP");
			System.out.println(uri.getHost());
			System.out.println(uri.getPath());
			System.out.println(uri.getPort());
		} catch (URISyntaxException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
